package com.weimob.mcloud.wechatwork.customer.externalDependencyProxy.onecrm;

import com.alibaba.dubbo.config.annotation.Reference;
import com.weimob.mcloud.wechatwork.core.adapter.pojo.dto.onecrm.request.WidCreateReq;
import com.weimob.mcloud.wechatwork.core.adapter.pojo.dto.onecrm.response.WidCreateBO;
import com.weimob.mcloud.wechatwork.core.adapter.service.OneCrmAdapterService;
import com.weimob.mcloud.wechatwork.customer.service.user.utils.SoaResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author liuzhu.chen
 * @Description
 * @Date 2022/10/28 19:10
 * @Version 1.0
 */

@Slf4j
@Component

public class OneCrmProxy {
    @Reference
    private OneCrmAdapterService oneCrmAdapterService;

    public WidCreateBO createWid(WidCreateReq widCreateReq){
       return SoaResponseUtil.unpack(oneCrmAdapterService.createWid(widCreateReq));
    }

}
